package test1230am;

public class Test04 {
    public static void main(String[] args) {

        // (4)求1+2+3+4...+10和
        int i= 0;
        for (int a = 1; a<= 10; a++) {
            i+=a;
        }
        System.out.println(i);
    }
}
